﻿@model CSF.Customers.Data.CreditClass
@using (Html.BeginForm())
{  
    <div id="container">
        <div id="formStyle">
            <fieldset>
                <legend></legend>
                @Html.ValidationSummary(true)
                <p>
                    <label>
                        Code</label>
                    @Html.TextBoxFor(model => model.Code)
                    @Html.ValidationMessageFor(model => model.Code)
                </p>
                <p>
                    <label>
                        Name1</label>
                    @Html.TextBoxFor(model => model.Name1)
                    @Html.ValidationMessageFor(model => model.Name1)
                </p>
                <p>
                    <label>
                        Name2</label>
                    @Html.TextBoxFor(model => model.Name2)
                    @Html.ValidationMessageFor(model => model.Name2)
                </p>
                <p>
                    <label>
                        Name3</label>
                    @Html.TextBoxFor(model => model.Name3)
                    @Html.ValidationMessageFor(model => model.Name3)
                </p>
                <p>
                    <label>
                        Sequence</label>
                    @Html.TextBoxFor(model => model.Sequence)
                    @Html.ValidationMessageFor(model => model.Sequence)
                </p>
                <p>
                    @Html.ActionLink("Back to List", "Index")
                </p>
            </fieldset>
            <fieldset>
                <legend></legend>
                <p>
                    <label>
                        Pay Before Produce</label>
                    @Html.CheckBoxFor(model => model.PayBeforeProduce)
                    @Html.ValidationMessageFor(model => model.PayBeforeProduce)
                </p>
                <p>
                    <label for="name">
                        Percent Before Produce</label>
                    @Html.TextBoxFor(model => model.PercentBeforeProduce)
                    @Html.ValidationMessageFor(model => model.PercentBeforeProduce)
                </p>
                <p>
                    <label>
                        Pay Before Ship</label>
                    @Html.CheckBoxFor(model => model.PayBeforeShip)
                    @Html.ValidationMessageFor(model => model.PayBeforeShip)
                </p>
                <p>
                    <label>
                        Percent Before Ship</label>
                    @Html.TextBoxFor(model => model.PercentBeforeShip)
                    @Html.ValidationMessageFor(model => model.PercentBeforeShip)
                </p>
            </fieldset>
            <p class="submit">
                <button type="submit">
                    Create</button></p>
        </div>
    </div>
  
}